package com.example.Windturbine.Service;

import com.example.Windturbine.DataObject.ProductInfoDO;
import com.example.Windturbine.Error.BusinessException;
import com.example.Windturbine.Response.CommonResult;
import com.example.Windturbine.Service.Model.ProductModel;

import java.util.List;

/**
 * @Author 丁永新
 * @Date 2021/12/18
 */
public interface PartService {
    //获取全部零件信息
    List<ProductInfoDO> getAll() throws BusinessException;

    //获取用户零件信息
    List<ProductInfoDO> getUserPart(Integer id) throws BusinessException;

    //获取零件的图结构
    CommonResult queryPartGraphInfo(Integer id) throws BusinessException;

    //获取零件列表信息
    List<ProductInfoDO> queryPartListInfo(Integer id) throws BusinessException;

    //提交零件bom信息
    void submitBom(List<ProductInfoDO> productInfoDO) throws BusinessException;

    //提交单个零件
    int submitPart(ProductInfoDO productInfoDO);

    void deleteById(Integer id) throws BusinessException;
}
